I = Input
R = Reading functions
The IR10EdgeInp function detects the rising edge of a digital input.
In particular:
IR10EdgeInp (Input, FronteUp, FronteDn)
Parameters
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | INPUT SYSTEM | Input | F | Digital input or variable you want to “capture” the front |
| OUT | GLOBAL | FronteUp | F | Flag on the rising edge |
| OUT | GLOBAL | FronteDn | F | Flag on the falling edge |
In the example the “ofUscita” output is set on the rising edge of the input “Input” It is reset on the falling edge of the same input.
IR10EdgeInp ( Input, FronteUp, FronteDn)
IF FronteUp
FronteUp = 0
SETOUT ofUscita
ENDIF
IF FronteDw
FronteDw = 0
RESOUT ofUscita
ENDIF